﻿<UserControl x:Class="ComputationVisualizer.PlayerControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
		<Rectangle Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Grid.ColumnSpan="3" Fill="Black"/>
        <StackPanel Margin="3" Orientation="Horizontal" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center">
            <ToggleButton x:Name="playStopBtn" Width="30" Height="30" Margin="4" Checked="playStopBtn_Checked" Unchecked="playStopBtn_Unchecked">
            	<Path x:Name="path" Fill="Black" Margin="2.875,1,3.083,2.625" Stretch="None">
    							<Path.Data>
    								<PathGeometry>
    									<PathFigure IsClosed="True" StartPoint="4.12500000000001,1.25">
    										<LineSegment Point="18.625,12"/>
    										<LineSegment Point="4.12500000000001,21.875"/>
    										<LineSegment Point="4.12500000000001,11.875"/>
    									</PathFigure>
    								</PathGeometry>
    							</Path.Data>
    						</Path>	
			</ToggleButton>
            <Button x:Name="prevCadreBtn" Content="&lt;" Width="30" Height="30" Margin="4" Click="prevCadreBtn_Click" FontWeight="Bold" FontSize="16" />
            <Button x:Name="nextCadreBtn" Content="&gt;" Width="30" Height="30" Margin="4" Click="nextCadreBtn_Click" FontSize="16" FontWeight="Bold" />
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Stretch">
            <Slider Name="positionSlider" Width="Auto"  ValueChanged="positionSlider_ValueChanged" />
            <TextBlock Name="positionTextBlock" Width="Auto" HorizontalAlignment="Center" Text="0" Foreground="White" />
        </StackPanel>
        <StackPanel Margin="3" Grid.Row="1" Grid.Column="2">
            <TextBlock>Кадров в секунду</TextBlock>
            <Slider Name="framesSpeedScrollBar" Minimum="0.1" Maximum="30" Value="1" Width="Auto" ValueChanged="framesSpeedScrollBar_ValueChanged" />
            <TextBox Name="framesTextBox" Width="70" TextChanged="framesTextBox_TextChanged" Text="1"/>
        </StackPanel>
        <Image Name="mainImageContainer" Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0"/>
    </Grid>
</UserControl>
